package com.example.websocket.service;

import com.example.websocket.pojo.dto.FriendDto;
import com.example.websocket.pojo.dto.NoteDto;
import com.example.websocket.pojo.dto.UserListDto;
import com.example.websocket.pojo.po.RequestPo;

import java.util.List;

/**
 * @ author 韩
 * time: 2024/3/11 18:58
 */

public interface FriendsService {
    List<UserListDto> getOwnFriends(String username);

    Boolean updateNote(NoteDto dto);

    Boolean addFriend(FriendDto dto);

    String verifyFriend(String username,String mine);

    List<UserListDto> searchFriend(String username, String key);

    List<RequestPo> selectMyRequest(String username);

    Boolean agreeRequest(String sender_username, String receiver_name);

    Boolean deletedFriend(String deletedName, String username);
}
